package com.diseaseInformation

class Symptom {
    static searchable = true              // <-- Make Comments searchable
    //For many to many ,can add symtoms to disease Only
    static belongsTo = Disease
    static hasMany = [diseases:Disease]

    String name
    String data

    String toString(){
        return name
    }
    static constraints = {
        name(unique:true,blank:false)
        data(blank:true)
    }
}